/**
 *
 *
 * @author TOTORO
 * @date 2021/7/24 13:46
 */

var staticEvId = 0;
$(function () {
    $(".next-input.next-focus, .next-input input").focus(function () {
        $(this).parent().addClass("next-focus");
    }).blur(function () {
        $(this).parent().removeClass("next-focus");
    })


    // 刷新页面时，查询一次
    $(document).ready(function () {
        renderingNewData();
    })
    // 点击打开卖家解释
    $(".dynamic").on("click", ".reply", function () {
        // 当前评论ID
        var evId = $(this).parents(".next-table-row").attr("data-ev-id");
        staticEvId = evId;
        var documentTop = document.documentElement.scrollTop;
        var $tips = $("<div class='tm-dialog sr-box' tabindex='0' role='dialog' style='width: 400px; height: 375px; left: 752px; top: "+parseInt(documentTop)+350+"px; display: none' data-reactid='.6.$dialog'>\n" +
            "    <div class='tm-dialog-content' data-reactid='.6.$dialog.0'><a tabindex='0' class='tm-dialog-close' data-reactid='.6.$dialog.0.0'>\n" +
            "        <span class='tm-dialog-close-x iconfont icon-close' style='font-size: 23px;'></span>\n" +
            "    </a>\n" +
            "        <div class='tm-dialog-body' data-reactid='.6.$dialog.0.2'>\n" +
            "            <p style='font-size: 18px'>卖家解释</p>\n" +
            "            <div style='margin:20px 0 25px 0;'>\n" +
            "                <div class='layui-form-item layui-form-text'>\n" +
            "                        <textarea name='desc' placeholder='请输入你对该评论的回复' class='layui-textarea sr-textarea' maxlength='200' style='resize:none;'></textarea>\n" +
            "                </div>\n" +
            "                <span>解释字数限制 <b class='font-count'>0/200</b></span> " +
            "<span style='color: #f40; position: relative; top: 20px; left: -127px; display: none' class='sr-failure'>提交失败，请勿修改data参数！</span>"+
            "            </div>\n" +
            "            <div style='margin:0 0 10px 110px;'>\n" +
            "                <button type='button' class='layui-btn layui-btn-normal sr-ok' data-ev-id='"+evId+"'>确定</button>\n" +
            "                <button type='button' class='layui-btn layui-btn-danger sr-close'>关闭</button>\n" +
            "            </div>\n" +
            "            <dl class='cancelOrder-notice cancelOrder-fixBottom' style='margin-top: 30px;; position: static'>\n" +
            "                <dt>温馨提醒:</dt>\n" +
            "                <dd style='overflow: hidden'><i>1.回复应和当前的内容相关，禁止无意义和严重跑题的内容</i></dd>\n" +
            "                <dd><i>2.</i>回复评论时，请遵守您所在国家和中华人民共和国的法律法规，禁止发布政治相关内容</dd>\n" +
            "            </dl>\n" +
            "        </div>\n" +
            "    </div>\n" +
            "    <div tabindex='0' style='width:0;height:0;overflow:hidden;' data-reactid='.6.$dialog.1'>sentinel</div>\n" +
            "</div>").appendTo("body");
        $tips.fadeIn(400);
        $(".tm-dialog-mask").show();
    })

    // 输入框字数统计
    $("body").on({
        keyup: function () {
            $(".font-count").text($(this).val().length+"/200");
        },
        focus: function () {
            $(this).removeClass("arrow_box");
            $(this).prop("placeholder", "请输入你对该评论的回复");
        }
    }, ".sr-textarea");

    var Main = {
        methods: {
            srSuccess() {
                this.$message({
                    showClose: true,
                    message: '回复该买家评论成功！',
                    type: 'success'
                });
            },
            srError() {
                this.$message({
                    showClose: true,
                    message: '系统繁忙，请稍后再试！',
                    type: 'error'
                });
            }
        }
    }
    var Ctor = Vue.extend(Main)
    new Ctor().$mount('#srStatus')

    $("body").on("click", ".sr-ok", function () {
        // 判断输入文字是否大于0
        var inputLength = $(".sr-textarea").val().length;
        if(inputLength <= 0){
            $(".sr-textarea").prop("placeholder", "请输入回复内容！");
            $(".sr-textarea").addClass("arrow_box");
            return false;
        }
        // 判断该按钮上是否有评论ID
        var evId = $(this).attr("data-ev-id");
        $(".sr-failure").hide();
        if(evId == "undefined" || parseInt(evId)!=staticEvId){
            $(".sr-failure").show();
            return false;
        }
        $.ajaxSettings.async = false;
        $.post("/evaluation/sr_evaluation.htm", {"pcId":evId, "text":$(".sr-textarea").val()}, function (data) {
            $(".sr-box").fadeOut(400);
            setTimeout(function () {
                $(".sr-box").remove();
            },400)
            $(".tm-dialog-mask").hide();
            if(data == "ok"){
                $("#srSuccess").click();
                // 通过pcId找到对应评论条，修改状态
                var $statusBox = $("table[data-ev-id="+evId+"]").find(".l-action");
                $statusBox.children(":eq(0)").remove();
                $statusBox.find("button").before($("<span>该评论已回复</span>"));
            } else{
                $("#srError").click();
            }
        })

    });

    // 关闭卖家解释
    $("body").on("click", ".tm-dialog-close-x, .sr-close", function () {
        $(".sr-box").fadeOut(400);
        setTimeout(function () {
            $(".sr-box").remove();
        },400)
        $(".tm-dialog-mask").hide();
    });


    // 以下为高级查询--------------------
    // 点击上方的查询，获取条件
    $(".param-check").click(function () {
        clearUrlFilter();
        // 将有值的传给url
        var allParam = $(".rate-manage-filter-body *[data-tp='filter']");
        for (let i = 0; i < allParam.length; i++) {
            if(allParam.eq(i).val().length>0){
                var newUrl = changeURLPar(window.location.href, allParam.eq(i).attr("id"), allParam.eq(i).val());
                window.history.pushState(null,null,newUrl);//向当前url添加参数
            }
        }

        renderingNewData();

    });

    // 点击重置，重置所有值，删除url参数
    $(".param-reset").click(function () {
        //商品ID
        $("#filterItemId").val("");
        // 订单编号
        $("#filterOrderId").val("");
        // 买家昵称
        $("#filterBuyerNick").val("");
        // 订单时间
        $("#clearTime").click();
        $("#filterDateStart").val("");
        $("#filterDateEnd").val("");
        // 清除地址栏所有的filter
        clearUrlFilter();
    });


    // 点击下方的选框，触发不同参数
    layui.use(['layer', 'form'], function() {
        var form = layui.form;
        // 1、评价内容
        form.on('checkbox(evaluationContent)', function(data){
            var flag = data.elem.checked;
            var val = data.value;
            var ckParam = val==0?"haveImage":"haveAppend";
            // 如果未选中某个复选框
            if(!flag){
                var newUrl = changeURLPar(window.location.href, ckParam, "false");
            } else{
                var newUrl = changeURLPar(window.location.href, ckParam, "true");
            }
            window.history.pushState(null,null,newUrl);//向当前url添加参数
            renderingNewData();
        });
        // 评价类型
        form.on('radio(evaluationType)', function(data){
            var val = data.value;
            var newUrl = changeURLPar(window.location.href, "evaluateType", val);
            window.history.pushState(null,null,newUrl);//向当前url添加参数
            renderingNewData();
        });
        // 待处理
        form.on('radio(waitingToBP)', function(data){
            var val = data.value;
            var newUrl = changeURLPar(window.location.href, "waitingToBP", val);
            window.history.pushState(null,null,newUrl);//向当前url添加参数
            renderingNewData();
        });
    });

    // 分页处理
    // 1、点击页面切换左箭头
    $("body").on("click", ".next-prev", function () {
        // 获取当前页数
        var nowPage = Totoro.getQueryVariable("paginationCurrent");
        var nextPage = parseInt(nowPage)-1;
        var newUrl = Totoro.changeURLPar(window.location.href, "paginationCurrent", parseInt(nowPage)-1);
        window.history.pushState(null,null,newUrl);//向当前url添加参数
        $(".next-pagination-list button[data-now-page='"+nextPage+"']").addClass("next-current").siblings().removeClass("next-current");
        renderingNewData();
    })
    // 2、点击页面切换左箭头
    $("body").on("click", ".next-next", function () {
        // 获取当前页数
        var nowPage = Totoro.getQueryVariable("paginationCurrent");
        var prevPage = parseInt(nowPage)+1;
        var newUrl = Totoro.changeURLPar(window.location.href, "paginationCurrent", parseInt(nowPage)+1);
        window.history.pushState(null,null,newUrl);//向当前url添加参数
        $(".next-pagination-list button[data-now-page='"+prevPage+"']").addClass("next-current").siblings().removeClass("next-current");
        renderingNewData();
    });
    // 3、点击分页按钮
    $("body").on("click",".next-pagination-list button:not(.next-current)", function () {
        var thatPage = $(this).attr("data-now-page");
        var newUrl = Totoro.changeURLPar(window.location.href, "paginationCurrent", thatPage);
        window.history.pushState(null,null,newUrl);//向当前url添加参数
        $(this).addClass("next-current").siblings().removeClass("next-current");
        renderingNewData();
    })
});


/**
 * change page url param
 * @param uri - pageUrl
 * @param par needs - param key
 * @param par_value - param value
 * @returns {string|*|string}
 */
function changeURLPar(uri, par, par_value) {
    var pattern = par + '=([^&]*)';
    var replaceText = par + '=' + par_value;
    if (uri.match(pattern)) {//如果连接中带这个参数
        var tmp = '/\\' + par + '=[^&]*/';
        tmp = uri.replace(eval(tmp), replaceText);
        return (tmp);
    }
    else {
        if (uri.match('[\?]')) {//如果链接中不带这个参数但是有其他参数
            return uri + '&' + replaceText;
        }
        else {//如果链接中没有带任何参数
            return uri + '?' + replaceText;
        }
    }
    return uri + '\n' + par + '\n' + par_value;
}


function clearUrlFilter(){
    var url = window.location.href;
    var beforeUrl = url.substr(0, url.indexOf("?"));
    var urlParam = window.location.search.substr(1);
    var params = urlParam.split("&");
    // 循环删除所有带有filter的参数
    for (let i = 0; i < params.length; i++) {
        if(params[i].search("filter") != -1){
            params[i]="";
        }
    }
    var newUrl = "";
    for (let i = 0; i < params.length; i++) {
        if(params[i].length>0){
            newUrl+=params[i]+"&";
        }
    }
    newUrl = newUrl.substring(0,newUrl.length-1);
    var finalUrl = Totoro.changeURLPar(newUrl, "paginationCurrent", 1);
    window.history.pushState({}, 0, beforeUrl+"?"+finalUrl);
}

function renderingNewData() {
    // 获取url上的所有参数
    var urlParam = window.location.search.substr(1);
    if(urlParam.charAt(0) == "&"){
        urlParam = urlParam.substring(1);
    }
    // 如果没有参数？
    if (urlParam.length<=0){
        return false;
    }
    var params = urlParam.split("&");
    var jsObj = [];
    for (let i = 0; i < params.length; i++) {
        var key = params[i].split("=")[0];
        var val = params[i].split("=")[1];
        jsObj.push({[key]:decodeURI(val)});
    }
    var parJson = JSON.stringify(jsObj)
    // 传给服务端进行处理
    $.post("/evaluation/super_find_evaluation.htm", {"parJson":parJson}, function (data) {
        console.log(data);
        $(".dynamic").children().addClass("next-loading-component");
        $(".next-loading-tip").show();
        setTimeout(function () {
            $(".dynamic").children().remove();
            if(data == "notData"){
                $(".dynamic").append(notData());
                $(".next-pagination-total").text("共0条");
                $(".next-pagination-list").html("<button aria-label='第1页，共1页' data-now-page='1' type='button' class='next-btn next-medium next-btn-normal next-pagination-item next-current'>\n" +
                    "<span class='next-btn-helper'>1</span>\n" +
                    "</button>");
            } else{
                var $tb = dataTable();
                var $parent = $tb.find(".next-table-body");
                $(".dynamic").append($tb);
                var dataJson = eval("("+ data +")");
                var allPage = dataJson[0]['pagination']['allPage'];
                var nowPage = dataJson[0]['pagination']['nowPage'];
                var pageSize = dataJson[0]['pagination']['pageSize'];
                for (let i = 0; i < dataJson.length; i++) {
                    var isFirst = i==0, isLast = i==dataJson.length-1;
                    var commentId = dataJson[i]['id'];
                    var marketOdd = dataJson[i]['modd'];
                    var userName = dataJson[i]['user']['userName'];
                    var creditScore = dataJson[i]['commentScore'];
                    var commentText = dataJson[i]['commentText']=="totoro yyds"?"评价方未及时做出评价,系统默认好评!":dataJson[i]['commentText'];
                    var commentTime = dataJson[i]['createTime'];
                    var pId = dataJson[i]['marketSrOrder']['product']['id'];
                    var pName = dataJson[i]['marketSrOrder']['product']['productName'];
                    var pSku = dataJson[i]['marketSrOrder']['product']['productSpecs']['productSpaceData'];
                    var splitSku = pSku.toString().replaceAll("{","").replaceAll("}","").replaceAll("'", "").replaceAll("\"","").split(",");
                    pSku = "";
                    for (let j = 0; j < splitSku.length; j++) {
                       pSku += splitSku[j].split("|")[0]+" "
                    }
                    var pPrice = dataJson[i]['marketSrOrder']['product']['productSpecs']['productPrice'];
                    var receiptTime = dataJson[i]['receiptDate'];
                    var isReply = dataJson[i]['marketSrOrder']['sellerIsReply'];
                    var replyText = "";
                    if(isReply == 1){
                        replyText = dataJson[i]['sellerReply']['text'];
                    }
                    var isAppend = dataJson[i]['marketSrOrder']['isAppendComment'];
                    var day = "";
                    var appendText = "";
                    if(isAppend == 1){
                        appendText = dataJson[i]['appendComment']['text'];
                        day = Totoro.getDaysBetween(receiptTime, dataJson[i]['appendComment']['createTime']);
                    }

                    var $el = $(
                        "                                                                            <table class='next-table-row "+(isFirst?"first":isLast?"last":"")+"' role='row' data-ev-id='"+commentId+"'>\n" +
                        "                                                                                <colgroup>\n" +
                        "                                                                                    <col style='width: 110px;'>\n" +
                        "                                                                                    <col style='width: 488px;'>\n" +
                        "                                                                                    <col style='width: 290px;'>\n" +
                        "                                                                                    <col style='width: 200px;'>\n" +
                        "                                                                                </colgroup>\n" +
                        "                                                                                <tbody>\n" +
                        "                                                                                <tr class='next-table-group-header'>\n" +
                        "                                                                                    <td colspan='4'>\n" +
                        "                                                                                        <div class='next-table-cell-wrapper'>\n" +
                        "                                                                                            <div class='l-order-info'>\n" +
                        "                                                                                                <div class='order-num'>订单号:\n" +
                        "                                                                                                    "+marketOdd+"\n" +
                        "                                                                                                </div>\n" +
                        "                                                                                                <div class='l-user-info'>\n" +
                        "                                                                                                    <span>"+userName+"</span><img\n" +
                        "                                                                                                        class='user-star'\n" +
                        "                                                                                                        src=''><span\n" +
                        "                                                                                                        class='ww-light'></span>\n" +
                        "                                                                                                </div>\n" +
                        "                                                                                            </div>\n" +
                        "                                                                                        </div>\n" +
                        "                                                                                    </td>\n" +
                        "                                                                                </tr>\n" +
                        "                                                                                <tr>\n" +
                        "                                                                                    <td data-next-table-col='0'\n" +
                        "                                                                                        data-next-table-row='0'\n" +
                        "                                                                                        class='next-table-cell first'\n" +
                        "                                                                                        role='gridcell'>\n" +
                        "                                                                                        <div class='next-table-cell-wrapper'\n" +
                        "                                                                                             data-next-table-row='0'>\n" +
                        "                                                                                            <div class='l-score-status'><img\n" +
                        "                                                                                                    src='//img.alicdn.com/imgextra/i4/O1CN01ucLeyu1PLR6vO0Coo_!!6000000001824-2-tps-30-36.png'\n" +
                        "                                                                                                    class='score-img'>\n" +
                        "                                                                                                "+(creditScore==1?"<div>信用分+1分</div>":creditScore==0?"<div aria-haspopup='true' aria-expanded='false'>[\n" +
                        "                                                                                                        <a target='_blank' rel='noopener noreferrer' href='https://knowledge.taobao.com/support/seller/knowledge-1125162.htm'>信用分不计分\n" +
                        "                                                                                                        </a>]\n" +
                        "                                                                                                    </div>":"<div style='color: #f40'>信用分-1分</div>")+"\n" +
                        "                                                                                            </div>\n" +
                        "                                                                                        </div>\n" +
                        "                                                                                    </td>\n" +
                        "                                                                                    <td data-next-table-col='1'\n" +
                        "                                                                                        data-next-table-row='0'\n" +
                        "                                                                                        class='next-table-cell'\n" +
                        "                                                                                        role='gridcell'>\n" +
                        "                                                                                        <div class='next-table-cell-wrapper'\n" +
                        "                                                                                             data-next-table-row='0'>\n" +
                        "                                                                                            <div class='l-rate-content'>\n" +
                        "                                                                                                <div class='rate-content'><span></span>"+ commentText +"</div>\n" +
                        "                                                                                                <div class='rate-time'>初次评价:\n" +
                        "                                                                                                    "+commentTime +
                        "                                                                                                </div>\n" +
                        "                                                                                                <!-- 卖家解释  || 用户追加-->"+
                        "                                                                                                       <div class='"+(isAppend==1||isReply==1?"l-rate-special":"")+"'>" +
                        "                                                                                                "+(isAppend == 1?"" +
                        "                                                                                                       <div class='l-rate-content'>" +
                        "                                                                                                           <div class='rate-time'>"+(day ==0 ?'确认收货后当天追加评论':'确认收货'+day+'天后追加评论')+"</div>" +
                        "                                                                                                        "+appendText+
                        "                                                                                                        </div>":"")+
                        "                                                                                                "+(isReply == 1?
                        "                                                                                                          <div class='rate-explain-content'>[解释]: "+replyText+"</div>":"")+
                        "                                                                                                        </div>"+
                        "                                                                                            </div>\n" +
                        "                                                                                        </div>\n" +
                        "                                                                                    </td>\n" +
                        "                                                                                    <td data-next-table-col='2'\n" +
                        "                                                                                        data-next-table-row='0'\n" +
                        "                                                                                        class='next-table-cell'\n" +
                        "                                                                                        role='gridcell'>\n" +
                        "                                                                                        <div class='next-table-cell-wrapper'\n" +
                        "                                                                                             data-next-table-row='0'>\n" +
                        "                                                                                            <div class='l-rate-itemInfo'>\n" +
                        "                                                                                                <a href='/buy.htm?pid="+pId+"' target='_blank' rel='noopener noreferrer'>"+ pName +"</a>\n" +
                        "                                                                                                <!-- sku -->"+
                        "                                                                                                <div>\n" +
                        "                                                                                                    <span style='color: darkgray'>"+pSku+"</span>"+
                        "                                                                                                </div>\n" +
                        "                                                                                                <div>\n" +
                        "                                                                                                    <span class='rate-price'>￥"+ pPrice +"</span>\n" +
                        "                                                                                                </div>\n" +
                        "                                                                                            </div>\n" +
                        "                                                                                        </div>\n" +
                        "                                                                                    </td>\n" +
                        "                                                                                    <td data-next-table-col='3'\n" +
                        "                                                                                        data-next-table-row='0'\n" +
                        "                                                                                        class='next-table-cell last'\n" +
                        "                                                                                        role='gridcell'>\n" +
                        "                                                                                        <div class='next-table-cell-wrapper'\n" +
                        "                                                                                             data-next-table-row='0'>\n" +
                        "                                                                                            <div class='l-action vertical'>\n" +
                        "                                                                                                    "+(isReply==0?"<a style='color: #f40' class='reply'>回复评论</a>":"<span>该评论已回复</span>")+ "\n" +
                        "                                                                                                <button type='button'\n" +
                        "                                                                                                        class='next-btn next-small next-btn-primary next-btn-text'>\n" +
                        "                                                                                                    <span class='next-btn-helper'>投诉评价</span>\n" +
                        "                                                                                                </button>\n" +
                        "                                                                                            </div>\n" +
                        "                                                                                        </div>\n" +
                        "                                                                                    </td>\n" +
                        "                                                                                </tr>\n" +
                        "                                                                                </tbody>\n" +
                        "                                                                            </table>").appendTo($parent);
                }

                // 分页统计
                $(".next-pagination-total").text("共"+allPage+"条");
                // 计算能够分几页
                var pageNumber;
                if(allPage > pageSize){
                    pageNumber = Math.floor((allPage + pageSize - 1) / pageSize);
                } else{
                    pageNumber = 1;
                }
                $(".next-pagination-display em").text(nowPage);
                $(".next-pagination-display i").text("/"+pageNumber);
                $(".next-pagination-list").html("");
                // 循环产生分页按钮
                for (let i = 0; i < pageNumber; i++) {
                    var $pageBtn = $("<button aria-label='第"+(i+1)+"页，共"+pageNumber+"页' data-now-page='"+(i+1)+"' type='button' class='next-btn next-medium next-btn-normal next-pagination-item'>\n" +
                        "<span class='next-btn-helper'>"+(i+1)+"</span>\n" +
                        "</button>").appendTo(".next-pagination-list");
                    if((i+1) == nowPage){
                        $pageBtn.addClass("next-current")
                    }
                }
                // 控制左右切换按钮的使用状态
                var isPrev = nowPage==1;
                $(".next-prev").prop("disabled", isPrev).prop("aria-label","上一页，当前第"+nowPage+"页");
                var isNext = nowPage==pageNumber;
                $(".next-next").prop("disabled", isNext).prop("aria-label","下一页，当前第"+nowPage+"页");
            }
        },200);

    })
}

function notData(){
    return $("<div class='next-loading next-open next-loading-inline next-table-loading'><div class='next-loading-tip' style='display: none'><div class='next-loading-indicator'><div class='next-loading-fusion-reactor'><span class='next-loading-dot'></span><span class='next-loading-dot'></span><span class='next-loading-dot'></span><span class='next-loading-dot'></span></div></div><div class='next-loading-tip-content'></div><div class='next-loading-tip-placeholder'></div></div><div class='next-loading-wrap'><div class='next-loading-masker'></div><div class='next-table next-table-medium only-bottom-border undefined l-rate-table'><table role='table'><colgroup><col><col><col><col></colgroup><thead class='next-table-header'><tr><th rowspan='1' class='next-table-cell next-table-header-node' role='gridcell'><div class='next-table-cell-wrapper' data-next-table-col='0'>计分状态</div></th><th rowspan='1' class='next-table-cell next-table-header-node' role='gridcell'><div class='next-table-cell-wrapper' data-next-table-col='1'>评价内容</div></th><th rowspan='1' class='next-table-cell next-table-header-node' role='gridcell'><div class='next-table-cell-wrapper' data-next-table-col='2'>宝贝信息</div></th><th rowspan='1' class='next-table-cell next-table-header-node' role='gridcell'><div class='next-table-cell-wrapper' data-next-table-col='3'>操作</div></th></tr></thead><tbody class='next-table-body'><tr><td colspan='4'><div class='next-table-empty'><span>没有数据</span></div></td></tr></tbody></table></div></div></div>");
}

function dataTable() {
    var $tb = $("<div class='next-table next-table-medium only-bottom-border next-table-group undefined l-rate-table'>\n" +
        "                                                                <div class='next-table-inner'>\n" +
        "                                                                    <div class='next-table-header'>\n" +
        "                                                                        <div class='next-table-header-inner'\n" +
        "                                                                             style='overflow: unset;'>\n" +
        "                                                                            <table>\n" +
        "                                                                                <colgroup>\n" +
        "                                                                                    <col style='width: 110px;'>\n" +
        "                                                                                    <col style='width: 488px;'>\n" +
        "                                                                                    <col style='width: 290px;'>\n" +
        "                                                                                    <col style='width: 200px;'>\n" +
        "                                                                                </colgroup>\n" +
        "                                                                                <thead>\n" +
        "                                                                                <tr>\n" +
        "                                                                                    <th rowspan='1'\n" +
        "                                                                                        class='next-table-cell next-table-header-node'\n" +
        "                                                                                        role='gridcell'>\n" +
        "                                                                                        <div class='next-table-cell-wrapper'\n" +
        "                                                                                             data-next-table-col='0'>\n" +
        "                                                                                            计分状态\n" +
        "                                                                                        </div>\n" +
        "                                                                                    </th>\n" +
        "                                                                                    <th rowspan='1'\n" +
        "                                                                                        class='next-table-cell next-table-header-node'\n" +
        "                                                                                        role='gridcell'>\n" +
        "                                                                                        <div class='next-table-cell-wrapper'\n" +
        "                                                                                             data-next-table-col='1'>\n" +
        "                                                                                            评价内容\n" +
        "                                                                                        </div>\n" +
        "                                                                                    </th>\n" +
        "                                                                                    <th rowspan='1'\n" +
        "                                                                                        class='next-table-cell next-table-header-node'\n" +
        "                                                                                        role='gridcell'>\n" +
        "                                                                                        <div class='next-table-cell-wrapper'\n" +
        "                                                                                             data-next-table-col='2'>\n" +
        "                                                                                            宝贝信息\n" +
        "                                                                                        </div>\n" +
        "                                                                                    </th>\n" +
        "                                                                                    <th rowspan='1'\n" +
        "                                                                                        class='next-table-cell next-table-header-node'\n" +
        "                                                                                        role='gridcell'>\n" +
        "                                                                                        <div class='next-table-cell-wrapper'\n" +
        "                                                                                             data-next-table-col='3'>操作\n" +
        "                                                                                        </div>\n" +
        "                                                                                    </th>\n" +
        "                                                                                </tr>\n" +
        "                                                                                </thead>\n" +
        "                                                                            </table>\n" +
        "                                                                        </div>\n" +
        "                                                                    </div>\n" +
        "                                                                       <div class='next-loading-tip' style='display: none'>\n" +
        "                                                                           <div class='next-loading-indicator'>\n" +
        "                                                                               <div class='next-loading-fusion-reactor'>\n" +
        "                                                                                   <span class='next-loading-dot'></span>\n" +
        "                                                                                   <span class='next-loading-dot'></span>\n" +
        "                                                                                   <span class='next-loading-dot'></span>\n" +
        "                                                                                   <span class='next-loading-dot'></span>\n" +
        "                                                                               </div>\n" +
        "                                                                            </div>\n" +
        "                                                                           <div class='next-loading-tip-content'></div>\n" +
        "                                                                           <div class='next-loading-tip-placeholder'></div>\n" +
        "                                                                     </div>"+
        "                                                                    <div class='next-table-body'>\n" +
        "                                                                    </div>\n" +
        "                                                                </div>\n" +
        "                                                            </div>");
    return $tb;

}
